package cn.com.aiton.educenter.service;

import cn.com.aiton.educenter.entity.PestsTrap;
import cn.com.aiton.educenter.entity.vo.PestsQrcodeVo;
import cn.com.aiton.educenter.entity.vo.TrapQrcodeVo;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 诱捕器业务数据表 服务类
 * </p>
 *
 * @author testAuthor
 * @since 2021-03-11
 */
public interface PestsTrapService extends IService<PestsTrap> {
    //查询某一天注册人数
    Integer countDay(String day);
    Integer countDayByProjectId(String day,String projectId);
    Integer countDayByProjectIdAndMemberId(String day,String projectId,String memberId);

    IPage<TrapQrcodeVo> pageTrapAndQrcode(Page<TrapQrcodeVo> page, Wrapper wrapper);
    Integer countTrapByProjectId(String projectId);
}
